
import java.util.Scanner;

public class QQQQQ {
    public static void main(String[] args){
        int a;
        Scanner A=new Scanner(System.in);
        a= A.nextInt();
        int x = aykkls(a);
        System.out.println(x);
    }
    public static int aykkls(int a){
        int sum=0;
        int c=1;
        int b=0;
        int f=0;
        for(int i=0;i<a;i++){
            b=b+1;
            for(int r=1;r<=b;r++){
                c=c*r;
                System.out.println(c);
                sum+=c;
            }
            c=1;
        }
        return sum;
    }
}
